package com.wtzz.police.base.service.base;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.Optional;

/**
 * CrudService基类
 */
@Transactional
public interface BaseCurdService<T,ID extends Serializable> {
    void add(Object data);

    void delete(ID id);

    void deleteAll(Iterable<ID> ids);

    void logicalDelete(ID id);

    void logicalDeleteAllInBatch(Iterable<ID> ids);

    void update(ID id, Object data);
}
